package com.zy.controller;

import com.zy.Services.UserServices;
import com.zy.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: 11473
 * @time: 2019/9/20 10:27
 */
@Controller
public class UserController {

    @Autowired
    UserServices userServices;

    @RequestMapping("/login")
    public String userLogin(User user){
        System.out.println(user.getBirthday());
        userServices.insertUser(user);
        return "t";
    }
}
